export default {
  hiddenMiddleMobileNumber(phone = '') {
    return phone.substr(0, 3) + '*'.repeat(4) + phone.slice(-4);
  },
  cardType(type) {
    switch (+type) {
      case 1:
        return '惠';
      case 2:
        return '商';
      case 3:
        return '车';
      case 4:
        return '服';
      case 5:
        return '恭';
      case 6:
        return '贺';
      case 7:
        return '新';
      case 8:
        return '春';
      default:
        return '';
    }
  }
}
